adapt (oneself) to (something)

Translations
s'adapter à (quelque chose)
Definitions
To adjust or modify one's behavior, thoughts, or actions in response to new conditions, circumstances, or environments.